09_MDP
Tags: #◇CSINTSY #◇Computational Thinking #◇Computer Science #◇Artificial Intelligence #◇Machine Learning #◇Intelligent Systems #◇Probability #◇Data Analysis
◇Overview
A Markov Decision Process (MDP) is a mathematical framework for modeling decision-making in situations where outcomes are partly random and partly ...
◇Details / Theory
9. Markov Decision Processes (MDP) Reviewer
◇Overview
A Markov Decision Process (MDP) is a mathematical framework for modeling decision-making in situations where outcomes are partly random and partly under the control of a decision maker. It is the formal basis for Reinforcement Learning.
◇Markov Property
"The future is independent of the past given the present."
The next state depends only on the current state and the action taken, not on the sequence of events that preceded it.
◇Components of an MDP
An MDP is defined by the tuple :
- States (): The set of all possible situations or configurations of the environment.
- Actions (): The set of all possible moves the agent can take.
- Transition Function () (or Model):
The probability of reaching state if we take action in state .
This models the uncertainty/randomness of the environment. - Reward Function ():
The immediate reward received after transitioning from to via action . - Discount Factor ():
A number between 0 and 1 ().
Determines the importance of future rewards.
: Agent is myopic (cares only about immediate reward).
: Agent is farsighted (cares about long-term cumulative reward).
◇Key Concepts
Policy ()
A strategy or rule that tells the agent what action to take in each state. Optimal Policy (): The policy that yields the highest expected cumulative reward over time.
Value Function ()
The expected cumulative reward the agent will receive starting from state and following a specific policy thereafter. It tells us "how good" it is to be in a specific state.
Bellman Equation
A recursive equation that decomposes the value of a state into the immediate reward plus the discounted value of the next state.
// ...existing code...
This equation is used to solve for the optimal values and policy. This equation is used to solve for the optimal values and policy.
◇Solved Example: Bellman Update
Scenario:
State A: You are here. Actions: "Go Left" or "Go Right". Discount Factor (): 0.9.
Transitions & Rewards:
- Action "Go Left":
50% chance to reach State B (Value ). Reward = 0.
50% chance to reach State C (Value ). Reward = 0. - Action "Go Right":
100% chance to reach State D (Value ). Reward = 2.
Calculate Value of Actions:
Value of "Go Left":
Value of "Go Right":
Update Value of State A:
Optimal Policy: Go Right.
◇Common Pitfalls
Forgetting the discount factor — it controls how much future rewards are worth vs. immediate ones. Confusing the transition function (probability of reaching ) with the reward . Not iterating the Bellman equation until convergence — one pass is generally insufficient for correct value estimates.
◇Summary
TL;DR — An MDP is defined by states, actions, transition probabilities, rewards, and discount factor . The Bellman equation gives the optimal value function; the optimal policy picks the action maximizing this.
◇Links
Related: Source / Reference:
Made by 2ru17
Please contact me through discord or my the university email for any problems regarding the reviewer. Thanks!
◇References & Navigation
- Previous Topic: ◇K Means Clustering
- Next Topic: ◇Q Learning
- Related Notes: ◇Markov Decision Processes
ACTIVE RECALL VERIFICATION
Select an answer to verify conceptual comprehension and reveal the technical rationale.
What is the fundamental assumption of the Markov Property?
Which component of an MDP models the probability of reaching a new state after taking a specific action?
What does a Discount Factor () close to 0 imply about an agent's behavior?
In the context of an MDP, what is a Policy ()?
What does the Value Function represent?
What is the primary purpose of the Bellman Equation in MDPs?
How does the Bellman equation handle uncertainty in the environment?
When updating the value of a state using the Bellman Equation, how is the optimal action chosen?
What is a common pitfall regarding the transition function and reward function in MDPs?
Why is one pass of the Bellman equation update generally insufficient to find the true value estimates?